<?php 
require_once 'functions.php';
init_user();
?>

<div id='left_cpanel'>
<?php if($userid!=-1){?>
<img src='<?php echo get_portrait_url($_SESSION["user"]["portrait"],"thumb",$_SESSION["user"]["sex"]);?>'><br>
<?php echo get_user_name_by_id($userid);?>
<span style='margin-left:10px;'><img style="vertical-align: middle;" src='image/<?php echo $_SESSION["user"]["sex"];?>.png'></span>
<?php }
      else{
?>
<span style='width:60%;display:block;margin:auto'>您还没有注册，请单击<a href="<?php the_app_page_url("","register")?>">这里</a>注册</span>
<?php }?>
</div>